<script setup lang="ts">
import BasicLayout from '@/layouts/BasicLayout.vue'
</script>

<template>
  <BasicLayout />
</template>

<style>
/* 全局样式优化 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
    'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

/* 全局样式重置 */
* {
  box-sizing: border-box;
}

/* 确保页面背景透明 */
#app {
  background: transparent;
}

/* 全局 Ant Design 组件暗色适配 */
/* 下拉菜单 */
.ant-select-dropdown,
.ant-dropdown-menu {
  background: rgba(30, 42, 58, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.ant-select-item,
.ant-dropdown-menu-item {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ant-select-item:hover,
.ant-dropdown-menu-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.ant-select-item-option-selected {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #ffffff !important;
}

/* 弹窗和模态框 */
.ant-modal-content {
  background: rgba(30, 42, 58, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

.ant-modal-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.ant-modal-title {
  color: #ffffff !important;
}

.ant-modal-body {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ant-modal-footer {
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 消息提示 */
.ant-message {
  z-index: 9999 !important;
}

.ant-message-notice-content {
  background: rgba(30, 42, 58, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* 分页器 */
.ant-pagination {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ant-pagination .ant-pagination-item {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 6px !important;
}

.ant-pagination .ant-pagination-item a {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ant-pagination .ant-pagination-item:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.ant-pagination .ant-pagination-item-active {
  background: rgba(59, 130, 246, 0.3) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
}

.ant-pagination .ant-pagination-item-active a {
  color: #ffffff !important;
}

.ant-pagination .ant-pagination-prev,
.ant-pagination .ant-pagination-next {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ant-pagination .ant-pagination-prev:hover,
.ant-pagination .ant-pagination-next:hover {
  color: #ffffff !important;
}

/* 工具提示 */
.ant-tooltip-inner {
  background: rgba(30, 42, 58, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border-radius: 6px !important;
}

.ant-tooltip-arrow::before {
  background: rgba(30, 42, 58, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 确认框 */
.ant-popconfirm-inner-content {
  background: rgba(30, 42, 58, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.ant-popconfirm-message {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* 空状态 */
.ant-empty-description {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* 全局深色滚动条样式 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}
</style>
